package com.atguigu.lease.common.minio;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 对象属性注入  @ConfigurationProperties、 @autowired、 @value
 * 配置类如何加入到容器
 * 1.component
 * 2.@EnableConfiguratinProperties(MinioProperties.class) 使用我们的配置类上 MinioConfiguration
 */
@Component
@ConfigurationProperties(prefix = "minio")
@Data
public class MinioProperties {
    private String endpoint;

    private String accessKey;

    private String secretKey;

    private String bucketName;
}
